import service from '../server'

// 线上充值
export const onlineRecharge = (data) => {
    return service.post('/api/v1/recharge', data)
}

// 线下充值
export const offlineRecharge = (data) => {
    return service.post('/api/v1/recharge/offline', data)
}

// 线下充值记录
export const getRechargeRecordsApi = (data) => {
    return service.get('/api/v1/recharge/offline/records', data)
}

// 线下充值账号信息
export const getRechargeAccountApi = (data) => {
    return service.get('/api/v1/recharge/offline/account', data)
}

// 查询充值状态
export const checkRechargeApi = (orderId) => {
    return service.get('/api/v1/recharge/' + orderId)
}

// 删除线下充值申请
export const deleteRechargeApi = (id) => {
    return service.delete('/api/v1/recharge/offline/' + id)
}